
// import { listDept } from '@/api/system/dept'

const state = {
  bellMsg: '',
  sosFlashLock: false,
  departList: []
}

const getters = {
  GET_BELLMSG: (state) => {
    return state.bellMsg
  }

}

const mutations = {
  UPDATE_BELLMSG(state, content) {
    state.bellMsg = content
  },
  changeSosFlashLock: (state, bLock) => {
    state.sosFlashLock = bLock
  },
  UPDATE_DEPARTLIST(state, content) {
    state.departList = content
  }
}

const actions = {
  // queryDepart({ commit }, dept) {
  //   return new Promise((resolve, reject) => {

  //   })
  // }
}

export default {
  namespaced: true,
  getters,
  state,
  mutations,
  actions
}
